package model;

//单链表
public class Node {
	public Object value;//结点的数据值
	public Node next;//下一个结点对象的引用

	public Node(Object value, Node next) {//一般结点的构造函数
		super();
		this.value = value;
		this.next = next;
	}

	public Node(Object value) {
		this(value, null);
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public Node getNext() {
		return next;
	}

	public void setNext(Node next) {
		this.next = next;
	}

	public String toString() {
		return value.toString();
	}

}
